<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<%@ taglib prefix="c" uri="jakarta.tags.core" %>--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--    <c:redirect url="/hello.jsp"></c:redirect>--%>

    <%
        request.setAttribute("message","<h1>Hello</h1>");
        request.setAttribute("now",new Date());
    %>


    ${message}<br/>

    <c:out value="${message}"></c:out><br/>

    <c:url value="/aaa"></c:url><br/>

    <a href="<c:url value="/index.jsp"></c:url>">index</a><br/>

    <a href="${pageContext.request.contextPath}/index.jsp">index</a><br/>

    <c:catch var="e">
        <%
            int i=1/0;
        %>
    </c:catch>

    ${e}<br/>
    ${e.message}<br/>



    <c:import url="/list.emp"></c:import><br/>

    <c:import url="/sayHelloAnnotation"></c:import><br/>

<%--    <%@ include file="/sayHelloAnnotation"%><br/><br/>--%>

    <jsp:include page="/sayHelloAnnotation"></jsp:include><br/>


    <c:choose>
        <c:when test="${param.a>0}">
            <h1>aaa</h1>
        </c:when>
        <c:when test="${param.a<0}">
            <h1>bbb</h1>
        </c:when>
        <c:otherwise>
            <h1>ccc</h1>
        </c:otherwise>
    </c:choose><br/>

    ${now}<br/>

    <fmt:formatDate value="${now}"></fmt:formatDate><br/>

    <fmt:formatDate value="${now}" pattern="yyyy/MM/dd HH:mm:ss"></fmt:formatDate>



</body>
</html>
